package com.rockcent.mall.lib.repository;

import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.domain.IntegrationCouponAudit;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * Created by DK on 16/12/17.
 */
@Repository
public interface IntegrationCouponAuditRepository extends JpaRepository<IntegrationCouponAudit, Long>, JpaSpecificationExecutor, IntegrationCouponAuditRepositoryCustom {
    IntegrationCouponAudit findByCouponIdAndMerchantIdAndIsDelete(Long id, Long merchantId, Whether no);
}
